<%@ page import="java.io.* , java.util.*, java.sql.*, com.myapp.struts.dao.*,com.myapp.struts.actionform.*,com.myapp.struts.beans.*"%>
<html>
    <!-- DW6 -->
    <head>
        <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
        <title>Item Master</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
        <style type="text/css">
            <!--
            .style1 {font-weight: bold}
            .style2 {font-weight: bold}
            -->
        </style>
        <script type="text/javascript">
            var monthtext=[1,2,3,4,5,6,7,8,9,10,11,12];
            function populatedropdown(dayfield, monthfield, yearfield){
                var today=new Date();
                var dayfield=document.getElementById(dayfield);
                var monthfield=document.getElementById(monthfield);
                var yearfield=document.getElementById(yearfield);
                for (var i=1; i<=31; i++)
                    dayfield.options[i]=new Option(i, i+1);
                dayfield.options[today.getDate()]=new Option(today.getDate(), today.getDate(), true, true); //select today's day
                for (var m=1; m<=12; m++)
                    monthfield.options[m]=new Option(monthtext[m], monthtext[m]);
                monthfield.options[today.getMonth()]=new Option(monthtext[today.getMonth()], monthtext[today.getMonth()], true, true); //select today's month
                var thisyear=today.getFullYear();
                for (var y=0; y<20; y++){
                    yearfield.options[y]=new Option(thisyear, thisyear);
                    thisyear+=1;
                }
                yearfield.options[0]=new Option(today.getFullYear(), today.getFullYear(), true, true); //select today's year
            }


        </script>
    </head>
    <body>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td height="547" valign="top">
                    <form action="ledgerReportMenu.jsp" method="post" name="form1" id="form1">
                        <table width="279" border="0" align="center" cellpadding="0" cellspacing="0" style="border-right: #000000 1px solid;
                               border-top: #000000 1px solid; border-left: #000000 1px solid;  border-bottom: #000000 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                            <tr>
                                <th height="33" colspan="2" align="center" nowrap="nowrap" bgcolor="#417139" class="subHeader style2 style1">Purchase Report </th>
                            </tr>
                            <tr>
                                <td width="110" height="23" align="center" class="style1 subHeader"><strong>From Date  </strong></td>
                                <td width="167" valign="middle" nowrap="nowrap" class="pageName">
                                    <select id="daydropdown" name="daydropdown"><option></option></select>-
                                    <select id="monthdropdown" name="monthdropdown"><option></option></select>-
                                    <select id="yeardropdown" name="yeardropdown"><option></option></select>
                                    <script type="text/javascript">

                                        //populatedropdown(id_of_day_select, id_of_month_select, id_of_year_select)
                                       
                                        populatedropdown("daydropdown", "monthdropdown", "yeardropdown");
                                        
                                    </script> </td>
                            </tr>
                            <tr >
                                <td height="23" align="center"  class="style1 subHeader"><strong>To Date  </strong></td>
                                <td valign="middle"  class="pageName">
                                    <select id="daydropdown1" name="daydropdown1"><option></option></select>-
                                    <select id="monthdropdown1" name="monthdropdown1"><option></option></select>-
                                    <select id="yeardropdown1" name="yeardropdown1"><option></option></select>
                                    <script type="text/javascript">
                                        //populatedropdown(id_of_day_select, id_of_month_select, id_of_year_select)

                                        populatedropdown("daydropdown1", "monthdropdown1", "yeardropdown1");

                                    </script> </td>
                            </tr>
                            <tr>
                                <td height="24" colspan="2" align="center"><input name="Submit" type="submit" class="subHeader" value="Submit" /></td>
                            </tr>
                        </table>
                    </form>
                </td>
            </tr>

            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    </body>
</html>
